<template>
  <el-card>
    <div slot="header">
      <div class="search-header">
        <span>线上热门搜索</span>
        <el-dropdown>
          <i class="el-icon-more" />
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>Apple</el-dropdown-item>
            <el-dropdown-item>小米</el-dropdown-item>
            <el-dropdown-item>华为</el-dropdown-item>
            <el-dropdown-item>OPPO</el-dropdown-item>
            <el-dropdown-item>魅族</el-dropdown-item>
          </el-dropdown-menu>
        </el-dropdown>
      </div>
    </div>
    <div>
      <el-row :gutter="10">
        <el-col :span="12"><lineCharts /></el-col>
        <el-col :span="12"><lineCharts /></el-col>
      </el-row>
      <!-- table表格 -->
      <el-table :data="tableData" style="width: 100%" border size="mini">
        <el-table-column label="排名" width="80" type="index" />
        <el-table-column label="搜搜关键字" width="180" />
        <el-table-column label="用户数" sortable />
        <el-table-column label="周涨幅" sortable />
      </el-table>
      <!-- 分页去 -->
      <el-pagination layout="prev, pager, next" :total="1000" class="pagination" />
    </div>
  </el-card>
</template>

<script>
import lineCharts from './lineCharts'
export default {
  name: 'Search',
  components: {
    lineCharts
  },
  data() {
    return {
      tableData: [{}]
    }
  }
}
</script>

<style scpoed>
.header {
  border-bottom: 1px solid #eee;
  padding: 5px 0px;
}
.search-header {
  display: flex;
  justify-content: space-between;
}
.pagination{
  float: right;
}
</style>
